package com.pingan.haofang.searchcloud.metadata.dao;

import com.pingan.haofang.searchcloud.metadata.domain.MetadataField;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 索引字段元数据信息DAO
 *
 * @author baojie371
 * @date 17/5/4
 * @since 1.0.0
 */
@Repository
public interface MetadataFieldDao extends JpaRepository<MetadataField, Long> {

    List<MetadataField> findByMetaId(long metaId);

    List<MetadataField> findByMetaIdIn(List<Long> metaIds);

    List<MetadataField> findByMetaIdAndFieldName(long metaId, String fieldName);

    List<MetadataField> deleteByMetaId(long metaId);
}
